/**
 * Created by graysoft on 2017/2/20.
 */
var asideClosedStyle = {
  width: "150px;"
}


$(function () {

    $("#collapse").click(function(){
        var isOpened = $(this).hasClass("opened");

      debugger
        $("#favor,#collapse,#main").removeClass();
        $("#favor,#collapse,#main").toggleClass(function() {
            if (isOpened) {
                return "closed";
            } else {
                return "opened";
            }
        });

    })
})